#define _CRT_SECURE_NO_WARNINGS 1


#include<stdio.h>


int main()
{
        int i = 0;
        int j = 0;
        int tmp = 0;
        int count = 0;
        int numbers[] = { 1,3,2,6,4 };
        int numbersLen = sizeof(numbers) / sizeof(numbers[0]);
        for (i = 0; i < numbersLen - 1; i++)
        {
            for (j = 0; j < numbersLen-1-i; j++)
            {
                if (*(numbers + j) > *(numbers + j + 1))
                {
                    tmp = *(numbers + j);
                   *(numbers + j)  = *(numbers + j + 1);
                    *(numbers + j + 1) = tmp;
                }
                if (*(numbers + j) == 0)
                {
                    count++;
                }
            }
        }
        for (i = 0; i < numbersLen - 1; i++)
        {
            if (*(numbers + i) + 1 != *(numbers + i + 1))
            {
                if (count != 0)
                {
                    *(numbers + i + 1) = *(numbers + i) + 1;
                }
                else
                {
                    printf("false");
                }
            }
        }
        printf("true");
        return 0;
}
	